package com.ktjiaoyu.controller;

import com.ktjiaoyu.service.BrandService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class BrandController {
    @Resource
    BrandService brandService;

    @RequestMapping("/findAllBrand")
    @ResponseBody
    public Object findAllBrand(){
        return brandService.selectAll();
    }
}
